<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
 <HEAD>
  <TITLE> New Document </TITLE>
  <META NAME="Generator" CONTENT="EditPlus">
  <META NAME="Author" CONTENT="">
  <META NAME="Keywords" CONTENT="">
  <META NAME="Description" CONTENT="">
  <script src="http://cdn.bootcss.com/jquery/1.11.2/jquery.min.js"></script>
 </HEAD>

 <BODY>

 <script>
  $(function(){
  $.get("http://localhost:8080/category/listsub.do",function(data,status){
  	data.forEach(function(e){
  		$("#category").append('<option value="'+e.id+'">'+e.name+'</option>');
  	});
    //alert("Data: " + data + "\nStatus: " + status);
  });
});
</script>



<br/>
名称:<input type="text" name="name" value=""/></br>
上级类目:
<select name="parentId" id="category">
	<option value="">请选择类目</option>
</select>
</br>


 </BODY>
</HTML>
